
Haskell installation instructions
=================================


1) Install GHC (ghc-6.8.2-i386-windows).  Accept the installation
   defaults.

   After installing GHC, append the following to the system path:

      ;C:\ghc\ghc-6.8.2\bin;C:\ghc\ghc-6.8.2\gcc-lib

   (This will be done for you automatically if you run the addpaths batch
   file in the Modpath folder.)


2) Install WinHugs (WinHugs-Sep2006).  Accept most of the installation
   defaults --- there is no need to create a shortcut on the desktop nor
   to run the program after installation.


3) Start Eclipse.  Choose Help > Software Updates > Find and Install... .
   Choose "Search for new features to install."  Choose "New Local Site...".
   Select the EclipseFP folder.  Click through the next dialog box, then
   click Finish.  In the "Updates" dialog box that will open next, select
   "Haskell SOE/EclipseFP" and click-through until you get to, and click,
   "Finish."  From there, click "Install All."  Allow Eclipse to restart.

   Choose Window > Open Perspective > Other... > Haskell.

   In the Haskell perspective, use the "Configurator Wizard" (look for an
   "fp" button in the tool bar) to set the path to the GHC compiler to:

      C:\ghc\ghc-6.8.2\bin\ghc.exe

   and the path to Hugs to

      C:\Program Files\WinHugs\hugs.exe

   You can ignore Haddock.  These paths may already be set, in which case
   you're merely confirming them.

   You're now done configuring Eclipse.


4) Run the configure batch file in the GLFW-0.3 folder.



Installation is now completed.


===============================================================


Haskell use notes follow.

1) Use the "Configurator Wizard" (look for an "fp" button in the toolbar
   in the Haskell perspectiveto set the path for the GHC compiler to:

      C:\ghc\ghc-6.8.2\bin\ghc.exe

   and the path to Hugs to

      C:\Program Files\WinHugs\hugs.exe

   You can ignore Haddock.


2) "Installing" SOE: Import any of the Haskell source files in the
   SOE\src folder into a Haskell project.  Note that SOE.hs is a required
   library module, so it must be imported as well.


3) Using SOE:

   The run configuration will have to have

   -i[.:]<path to directory containing SOE.hs>

   added as an argument.  The simplest way to achieve this appears to be to
   run the Haskell module, wait for it to complain that it can's find SOE.hs,
   and open the "Run Dialog."

   After adding this argument, it appears that you can re-select the run
   configuration from the Run History, under the Run toolbar button.
